package com.ifamily.domain.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "addresses", catalog = "ifamily")
public class Address implements java.io.Serializable {

	private static final long serialVersionUID = -4716191286137810241L;
	@Id
	@Column(name = "ID", unique = true, nullable = false)
	private int id;
	@Column(name = "COUNTRY", length = 50)
	private String country;
	@Column(name = "CITY", length = 50)
	private String city;
	@Column(name = "DISTRICT", length = 50)
	private String district;
	@Column(name = "STREET", length = 50)
	private String street;
	@Column(name = "APPARTMENT")
	private Integer appartment;

	public Address() {
	}

	public Address(int id) {
		this.id = id;
	}

	public Address(int id, String country, String city, String district,
			String street, Integer appartment) {
		this.id = id;
		this.country = country;
		this.city = city;
		this.district = district;
		this.street = street;
		this.appartment = appartment;
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return this.district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	
	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public Integer getAppartment() {
		return this.appartment;
	}

	public void setAppartment(Integer appartment) {
		this.appartment = appartment;
	}
}
